#ifndef FFMPEGUTIL_H
#define FFMPEGUTIL_H
#include "yuvspec.h"
#include <QDebug>

class YUVDataSpec: public YUVSpec{

private:
    char* data = nullptr;


public:
    YUVDataSpec(int width,int height,int fps,AVPixelFormat format,char* data):
        YUVSpec(width,height,fps,format),data(data){

    }

    char* getData(){

        return data;
    }
    void setData(char* data) {

        this->data = data;
    }
};


class FFmpegUtil
{
public:
    FFmpegUtil();
    static int yuvToRGB(YUVDataSpec& inYuvDataSpec, YUVDataSpec& outYuvDataSpec);
};

#endif // FFMPEGUTIL_H
